package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.framework.widget.RenderMachineImageView;
import java.util.LinkedHashMap;
import o.cgz;
import o.dgh;
import o.doi;
import o.ekb;
import o.eqp;
import o.evx;
import o.ewm.j;

public class DetailAppIntroTranslateGeneralCard extends DetailDescGeneralCardEx {
    private RenderMachineImageView ॱˎ;
    private String ॱᐝ;
    private ekb ᐝॱ = null;

    public /* synthetic */ DetailDescGeneralCardEx ˊ(View view) {
        return ˋ(view);
    }

    public /* synthetic */ DetailDescGeneralCard ˎ(View view) {
        return ˋ(view);
    }

    public /* synthetic */ cgz ˏ(View view) {
        return ˋ(view);
    }

    public DetailAppIntroTranslateGeneralCard(Context context) {
        super(context);
    }

    public DetailAppIntroTranslateGeneralCard ˋ(View view) {
        super.ˊ(view);
        this.ॱˎ = (RenderMachineImageView) this.ˋ.findViewById(j.ˏˍ);
        this.ॱˎ.setOnClickListener(new evx(this) {
            final /* synthetic */ DetailAppIntroTranslateGeneralCard ˋ;

            {
                this.ˋ = r1;
            }

            public void ˋ(View view) {
                if (this.ˋ.ᐝॱ == null) {
                    this.ˋ.ᐝॱ = new ekb();
                }
                this.ˋ.ʼ();
                this.ˋ.ᐝॱ.ॱ(this.ˋ.ˋ.getContext(), this.ˋ.ॱᐝ);
            }
        });
        return this;
    }

    public void ˏ(CardBean cardBean) {
        if (super.ˎ(cardBean)) {
            this.ॱᐝ = this.ˏॱ.ﹳ();
            ˏॱ();
        }
    }

    private void ʼ() {
        String str = "";
        if ("1".equals(this.ॱᐝ)) {
            str = "091301";
        } else if ("2".equals(this.ॱᐝ)) {
            str = "091302";
        }
        dgh.ˋ(str, ˋॱ());
    }

    private static LinkedHashMap<String, String> ˋॱ() {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap();
        String ॱ = doi.ॱ();
        String ॱ2 = eqp.ॱ();
        linkedHashMap.put("local", ॱ);
        linkedHashMap.put("serviceCountry", ॱ2);
        return linkedHashMap;
    }

    private void ˏॱ() {
        if ("1".equals(this.ॱᐝ)) {
            this.ॱˎ.setVisibility(0);
            this.ॱˎ.setActive(false);
        } else if ("2".equals(this.ॱᐝ)) {
            this.ॱˎ.setVisibility(0);
            this.ॱˎ.setActive(true);
        } else {
            this.ॱˎ.setVisibility(8);
        }
    }
}
